[bits 16]

VM86_ADDR equ 0x10000

[org 0x0000]
    dd 0x20250601

    mov ax, VM86_ADDR >> 4
    mov ds, ax
    pop ax
    mov [intr_num_ptr], al

    pop ax
    mov es, ax

    pop ax
    mov ds, ax

    pop bp
    pop di
    pop si
    pop dx
    pop cx
    pop bx
    pop ax

    db 0xCD
intr_num_ptr:
    db 0x00

    push ax
    push bx
    push cx
    push dx
    push si
    push di
    push bp

    mov ax, ds
    push ax

    mov ax, es
    push ax

    int 0xfe